
def _getMatrix():
   matrix = []
   for i in range(3):
      row = [float(num) for num in input().strip().split(" ")]
      matrix.append(row)
   return matrix

def solve(matrix):

    n = len(matrix)

    # 将矩阵转换为简化的行最简形式
    for i in range(n):
        # 如果主元为零，跳过该行
        if matrix[i][i] == 0:
            continue

        # 归一化当前行，使主元为 1
        pivot = matrix[i][i]
        for j in range(i, n + 1):  # 对当前行进行归一化
            matrix[i][j] /= pivot

        # 将当前行的主元列的其他元素清零
        for k in range(n):
            if k != i:
                factor = matrix[k][i]
                for j in range(i, n + 1):
                    matrix[k][j] -= factor * matrix[i][j]

    # 提取解向量
    solution = [matrix[i][n] for i in range(n)]
    return solution




matrix=_getMatrix()
ans=solve(matrix)
for num in ans:
    if(abs(num)<0.00001):
        num=0
    print("%.3f"%num, end=" ")